<template>
  <Layout>
    <!-- Page Header -->
    <header
      class="masthead"
    >
      <div class="overlay"></div>
      <div class="container">
        <div class="row">
          <div class="col-lg-8 col-md-10 mx-auto">
            <div>
              <h1>{{$page.post.title}}</h1>
              <span class="meta"
                >最近更新 {{$page.post.updated_at}}</span
              >
            </div>
          </div>
        </div>
      </div>
    </header>
    <!-- Post Content -->
    <article>
      <div class="container">
        <div class="row">
          <div class="col-lg-8 col-md-10 mx-auto">
            {{$page.post.content}}
          </div>
        </div>
      </div>
    </article>
  </Layout>
</template>

<page-query>
query($id: ID!) {
  post: strapiPost(id: $id) {
    id
    title
    content
    created_at
    updated_at
  }
}
</page-query>

<script>
export default {
  name: 'PostPage'
}
</script>

<style></style>